package com.starter.zoe;

import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

/**
 * @author Zoe.Zhang
 * @date 2021/11/30
 * @description
 */
@ConfigurationProperties(prefix = "zoe.ali")
public class ZoeProperties {
    private String name;
    private Integer age;
    private Dog dog;
    private List<String> role;


    public List<String> getRole() {
        return role;
    }

    public void setRole(List<String> role) {
        this.role = role;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Dog getDog() {
        return dog;
    }

    public void setDog(Dog dog) {
        this.dog = dog;
    }

    public static class Dog {
        private String name;
        private String color;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getColor() {
            return color;
        }

        public void setColor(String color) {
            this.color = color;
        }
    }

}
